package com.team.six.bluecatshop.service;

import com.team.six.bluecatshop.domain.Customer;
import com.team.six.bluecatshop.domain.SeachCustomerResponse;

import java.util.List;

public interface CustomerService {
    /*
     * 增加修改一个用户
     * */
    public void add(Customer customer) ;

    /**
     * 删除一个用户
     * */
    public void remove(String id) ;

    /**
     * 获得一个用户
     * */
    public Customer findById(String id) ;


    /**
     * 获得用户列表
     * */
    List<Customer> findAll() ;

    Customer findCustomerByName(String name);

    Customer findCustomerByPhone(String phone);
    void updateByPrimaryKeySelective(Customer customer);

    Customer findCustomerByEmail(String customerEmail);

    SeachCustomerResponse findCustomerAll(Integer pageNum, Integer pageSize, String keyword);
}
